#import "HeatwaveCharismaCell.h"


@implementation HeatwaveCharismaCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self graspXylophoneLayout];
	}
	return self;
}

- (void)setZeal:(HeatwaveCharismaModel *)zeal {
	_zeal = zeal;

	//: 配置cell的UI



}
//: 设置_quenchImageView的圆角
- (void)pioneerZebraZest:(UIImageView *)journeyAmberMelodic leap:(CGFloat)xenialCascade {
	journeyAmberMelodic.layer.cornerRadius = xenialCascade;
	journeyAmberMelodic.layer.masksToBounds = YES;
}

- (UIImageView *)quenchImageView {
	if (!_quenchImageView) {
	
        _quenchImageView = [UIImageView new];
        _quenchImageView.contentMode = UIViewContentModeScaleAspectFill;
        _quenchImageView.clipsToBounds = YES;
        //: UIImageView的骚操作 充数
        [self pioneerZebraZest:_quenchImageView leap:3];
        _quenchImageView.frame = CGRectMake(3, 23, 194, 96);
        UIImage *magnitudeLibertyKindred = [UIImage imageNamed:@"images/image_0.png"];
        if (magnitudeLibertyKindred) {
	        _quenchImageView.image = magnitudeLibertyKindred;
        }
	}
	return _quenchImageView;
}

//: _oliveFlowInvincibleBtn 的点击事件
- (void)action_1 {}

- (UIButton *)oliveFlowInvincibleBtn {
	if (!_oliveFlowInvincibleBtn) {
	
        _oliveFlowInvincibleBtn = [UIButton new];
        UIImage *curiousQuixoticArcane = [UIImage imageNamed:@"images/icon_1.png"];
        if (curiousQuixoticArcane) {
	        [_oliveFlowInvincibleBtn setImage:curiousQuixoticArcane forState:UIControlStateNormal];
        }
        [_oliveFlowInvincibleBtn setTitle:@"button_1" forState:UIControlStateNormal];
        [_oliveFlowInvincibleBtn setTitle:@"button_selected_1" forState:UIControlStateSelected];
        [_oliveFlowInvincibleBtn setTitleColor:[UIColor colorWithRed:252/255.0 green:185/255.0 blue:8/255.0 alpha:0.7] forState:UIControlStateNormal];
        [_oliveFlowInvincibleBtn setTitleColor:[UIColor colorWithRed:109/255.0 green:0/255.0 blue:142/255.0 alpha:0.9] forState:UIControlStateSelected];
        [_oliveFlowInvincibleBtn addTarget:self action:@selector(action_1) forControlEvents:UIControlEventTouchUpInside];
	}
	return _oliveFlowInvincibleBtn;
}

//: _zestFableBtn 的点击事件
- (void)action_3 {}

- (UIButton *)zestFableBtn {
	if (!_zestFableBtn) {
	
        _zestFableBtn = [[UIButton alloc] initWithFrame:CGRectZero];
        _zestFableBtn.size = CGSizeMake(189, 117);
        _zestFableBtn.left = 27;
        _zestFableBtn.top = 46;
        UIImage *xylophoneBlossomLush = [UIImage imageNamed:@"images/icon_3.png"];
        if (xylophoneBlossomLush) {
	        [_zestFableBtn setImage:xylophoneBlossomLush forState:UIControlStateNormal];
        }
        [_zestFableBtn setTitle:@"button_3" forState:UIControlStateNormal];
        [_zestFableBtn setTitle:@"button_selected_3" forState:UIControlStateSelected];
        [_zestFableBtn setTitleColor:[UIColor colorWithRed:146/255.0 green:71/255.0 blue:158/255.0 alpha:0.7] forState:UIControlStateNormal];
        [_zestFableBtn setTitleColor:[UIColor colorWithRed:93/255.0 green:216/255.0 blue:43/255.0 alpha:1.0] forState:UIControlStateSelected];
        [_zestFableBtn addTarget:self action:@selector(action_3) forControlEvents:UIControlEventTouchUpInside];
	}
	return _zestFableBtn;
}

- (UITextField *)amberEchoesTextField {
	if (!_amberEchoesTextField) {
	
        _amberEchoesTextField = [[UITextField alloc] initWithFrame:CGRectZero];
	}
	return _amberEchoesTextField;
}

- (void)graspXylophoneLayout {
	//: 描述_0
	[self.contentView addSubview:self.quenchImageView];

	//: 描述_1
	[self.contentView addSubview:self.oliveFlowInvincibleBtn];
	[self.oliveFlowInvincibleBtn mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(96);
		make.height.mas_equalTo(188);
		make.top.equalTo(@(18));
	}];


    //: 描述_2
    UIView *yarn = [UIView new];
    yarn.size = CGSizeMake(33, 182);
    yarn.left = 20;
    yarn.top = 15;
    self.tranquilView = yarn;
    [self.contentView addSubview:yarn];

	//: 描述_3
	[self.contentView addSubview:self.zestFableBtn];

	//: 描述_4
	[self.contentView addSubview:self.amberEchoesTextField];
	[self.amberEchoesTextField mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(199);
		make.height.mas_equalTo(83);
	}];
}


@end